import * as tslib_1 from "tslib";
import { Injectable } from '@angular/core';
import { ViewModel, NgCommand } from '@farris/devkit';
import { Observable } from 'rxjs';
var ɵ0 = { type: 'string' };
var RightDataGridComponentViewmodel = /** @class */ (function (_super) {
    tslib_1.__extends(RightDataGridComponentViewmodel, _super);
    function RightDataGridComponentViewmodel() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.bindingPath = '/zzrys';
        _this.dom = {
            "right-data-grid": {
                "type": "DataGrid",
                "resourceId": "right-data-grid",
                "visible": {
                    "useQuote": false,
                    "isExpression": false,
                    "value": true
                },
                "id": "right-data-grid",
                "size": {},
                "readonly": {
                    "useQuote": false,
                    "isExpression": false,
                    "value": false
                },
                "fields": [
                    {
                        "type": "GridField",
                        "resourceId": "code_d1aad922_60n6",
                        "visible": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": true
                        },
                        "id": "code_d1aad922_60n6",
                        "size": {
                            "width": 120
                        },
                        "readonly": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": false
                        },
                        "binding": {
                            "type": "Form",
                            "path": "code",
                            "fullPath": "Code",
                            "isExpression": false,
                            "value": "code"
                        },
                        "dataField": "code",
                        "dataType": "string",
                        "multiLanguage": false,
                        "caption": "编号",
                        "draggable": false,
                        "frozen": "none",
                        "sortable": true,
                        "resizeable": true,
                        "aggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "groupAggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "linkedLabelEnabled": false,
                        "updateOn": "blur",
                        "formatter": {
                            "type": "none"
                        }
                    },
                    {
                        "type": "GridField",
                        "resourceId": "name_3bf04626_yolj",
                        "visible": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": true
                        },
                        "id": "name_3bf04626_yolj",
                        "size": {
                            "width": 120
                        },
                        "readonly": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": false
                        },
                        "binding": {
                            "type": "Form",
                            "path": "name",
                            "fullPath": "Name",
                            "isExpression": false,
                            "value": "name"
                        },
                        "dataField": "name",
                        "dataType": "string",
                        "multiLanguage": false,
                        "caption": "名称",
                        "draggable": false,
                        "frozen": "none",
                        "sortable": true,
                        "resizeable": true,
                        "aggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "groupAggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "linkedLabelEnabled": false,
                        "updateOn": "blur",
                        "formatter": {
                            "type": "none"
                        }
                    },
                    {
                        "type": "GridField",
                        "resourceId": "state_8f93dc0a_t07q",
                        "visible": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": true
                        },
                        "id": "state_8f93dc0a_t07q",
                        "size": {
                            "width": 120
                        },
                        "readonly": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": false
                        },
                        "binding": {
                            "type": "Form",
                            "path": "state",
                            "fullPath": "State",
                            "isExpression": false,
                            "value": "state"
                        },
                        "dataField": "state",
                        "dataType": "string",
                        "multiLanguage": false,
                        "caption": "状态",
                        "draggable": false,
                        "frozen": "none",
                        "sortable": true,
                        "resizeable": true,
                        "aggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "groupAggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "linkedLabelEnabled": false,
                        "updateOn": "blur",
                        "formatter": {
                            "type": "none"
                        }
                    },
                    {
                        "type": "GridField",
                        "resourceId": "organization_63ca5a4d_lw0x",
                        "visible": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": true
                        },
                        "id": "organization_63ca5a4d_lw0x",
                        "size": {
                            "width": 120
                        },
                        "readonly": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": false
                        },
                        "binding": {
                            "type": "Form",
                            "path": "organization",
                            "fullPath": "Organization",
                            "isExpression": false,
                            "value": "organization"
                        },
                        "dataField": "organization",
                        "dataType": "string",
                        "multiLanguage": false,
                        "caption": "组织",
                        "draggable": false,
                        "frozen": "none",
                        "sortable": true,
                        "resizeable": true,
                        "aggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "groupAggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "linkedLabelEnabled": false,
                        "updateOn": "blur",
                        "formatter": {
                            "type": "none"
                        }
                    },
                    {
                        "type": "GridField",
                        "resourceId": "gender_7e51ce58_lxqc",
                        "visible": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": true
                        },
                        "id": "gender_7e51ce58_lxqc",
                        "size": {
                            "width": 120
                        },
                        "readonly": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": false
                        },
                        "binding": {
                            "type": "Form",
                            "path": "gender",
                            "fullPath": "Gender",
                            "isExpression": false,
                            "value": "gender"
                        },
                        "dataField": "gender",
                        "dataType": "string",
                        "multiLanguage": false,
                        "caption": "性别",
                        "draggable": false,
                        "frozen": "none",
                        "sortable": true,
                        "resizeable": true,
                        "aggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "groupAggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "linkedLabelEnabled": false,
                        "updateOn": "blur",
                        "formatter": {
                            "type": "none"
                        }
                    },
                    {
                        "type": "GridField",
                        "resourceId": "countryOrArea_46c53cef_55t3",
                        "visible": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": true
                        },
                        "id": "countryOrArea_46c53cef_55t3",
                        "size": {
                            "width": 120
                        },
                        "readonly": {
                            "useQuote": false,
                            "isExpression": false,
                            "value": false
                        },
                        "binding": {
                            "type": "Form",
                            "path": "countryOrArea",
                            "fullPath": "CountryOrArea",
                            "isExpression": false,
                            "value": "countryOrArea"
                        },
                        "dataField": "countryOrArea",
                        "dataType": "string",
                        "multiLanguage": false,
                        "caption": "所属国家或地区",
                        "draggable": false,
                        "frozen": "none",
                        "sortable": true,
                        "resizeable": true,
                        "aggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "groupAggregate": {
                            "type": "none",
                            "formatter": {
                                "type": "none"
                            }
                        },
                        "linkedLabelEnabled": false,
                        "updateOn": "blur",
                        "formatter": {
                            "type": "none"
                        }
                    }
                ],
                "multiSelect": false,
                "showLineNumber": false,
                "lineNumberTitle": "#",
                "groupTotalText": "Total",
                "filterable": false,
                "groupable": false,
                "rowClass": ""
            }
        };
        return _this;
    }
    RightDataGridComponentViewmodel.prototype.RouteToAdd1 = function (commandParam) { return; };
    RightDataGridComponentViewmodel.prototype.RouteToEdit1 = function (commandParam) { return; };
    RightDataGridComponentViewmodel.prototype.RouteToView1 = function (commandParam) { return; };
    RightDataGridComponentViewmodel.prototype.Remove1 = function (commandParam) { return; };
    tslib_1.__decorate([
        NgCommand({
            name: 'RouteToAdd1',
            params: {
                url: '5eeb2c52-b53b-4373-b417-c4fd0342cd32',
                params: '{"action":"LoadAndAdd1"}'
            },
            paramDescriptions: {
                url: { type: 'string' },
                params: { type: 'string' }
            }
        }),
        tslib_1.__metadata("design:type", Function),
        tslib_1.__metadata("design:paramtypes", [Object]),
        tslib_1.__metadata("design:returntype", Observable)
    ], RightDataGridComponentViewmodel.prototype, "RouteToAdd1", null);
    tslib_1.__decorate([
        NgCommand({
            name: 'RouteToEdit1',
            params: {
                url: '5eeb2c52-b53b-4373-b417-c4fd0342cd32',
                params: '{"action":"LoadAndEdit1", "id":"{DATA~/#{left-tree-grid-component}/id}"}',
                idToEdit: ''
            },
            paramDescriptions: {
                url: { type: 'string' },
                params: { type: 'string' },
                idToEdit: { type: 'string' }
            }
        }),
        tslib_1.__metadata("design:type", Function),
        tslib_1.__metadata("design:paramtypes", [Object]),
        tslib_1.__metadata("design:returntype", Observable)
    ], RightDataGridComponentViewmodel.prototype, "RouteToEdit1", null);
    tslib_1.__decorate([
        NgCommand({
            name: 'RouteToView1',
            params: {
                url: '5eeb2c52-b53b-4373-b417-c4fd0342cd32',
                params: '{"action":"LoadAndView1", "id":"{DATA~/#{left-tree-grid-component}/id}"}',
                idToView: ''
            },
            paramDescriptions: {
                url: { type: 'string' },
                params: { type: 'string' },
                idToView: { type: 'string' }
            }
        }),
        tslib_1.__metadata("design:type", Function),
        tslib_1.__metadata("design:paramtypes", [Object]),
        tslib_1.__metadata("design:returntype", Observable)
    ], RightDataGridComponentViewmodel.prototype, "RouteToView1", null);
    tslib_1.__decorate([
        NgCommand({
            name: 'Remove1',
            params: {
                id: '{DATA~/#{right-data-grid-component}/zzrys/id}'
            },
            paramDescriptions: {
                id: ɵ0
            }
        }),
        tslib_1.__metadata("design:type", Function),
        tslib_1.__metadata("design:paramtypes", [Object]),
        tslib_1.__metadata("design:returntype", Observable)
    ], RightDataGridComponentViewmodel.prototype, "Remove1", null);
    RightDataGridComponentViewmodel = tslib_1.__decorate([
        Injectable()
    ], RightDataGridComponentViewmodel);
    return RightDataGridComponentViewmodel;
}(ViewModel));
export { RightDataGridComponentViewmodel };
export { ɵ0 };
